package com.dlc.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dlc.shop.bean.model.TakeStock;
import com.dlc.shop.bean.param.TakeStockParam;
import com.dlc.shop.bean.vo.TakeStockVO;
import com.dlc.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @author Citrus
 * @date 2021-09-15 11:18:33
 */
public interface TakeStockMapper extends BaseMapper<TakeStock> {
    /**
     * 分页查询盘点列表
     * @param page
     * @param takeStock
     * @return
     */
    IPage<TakeStockVO> pageByParams(@Param("page") PageParam<TakeStock> page, @Param("takeStock") TakeStockParam takeStock);

    /**
     * 导出盘点
     * @param takeStock
     * @return
     */
    List<TakeStockVO> listByParams(@Param("takeStock") TakeStockParam takeStock);

    /**
     * 获取实物盘点信息
     * @param takeStockId
     * @return
     */
    TakeStockVO getTakeStockById(@Param("takeStockId") Long takeStockId);
}
